import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: qian
 * Date: 2023-02-12
 * Time: 10:13
 */
public class test7 {

    //字符流读文件
    public static void main(String[] args) throws IOException {
        FileReader fileReader=new FileReader("./bbb.txt");
        while(true){
            int b=fileReader.read();
            if(b==-1){
                break;
            }
            char ch=(char)b;
            System.out.println(ch);
        }
        fileReader.close();
    }

}
